export type TUserItem = {
  account: string,
  status: boolean,
  org_code: number,
  org_name: string,
  org_type: string,
  username: string,
  phone: string
  email: string
  passwd: string
}

export function defaultUserItem(): TUserItem{
  return {
    account: '',
    status: true,
    org_code: 0,
    org_name: '',
    org_type: '',
    username: '',
    phone: '',
    email: '',
    passwd: ''
  }
}

export type TRoleItem = {
  id: number,
  order: number,
  role_desc: string,
  role_name: string,
  status: boolean
}

export type TUserRoleItem = {
  order: number,
  role_desc: string,
  role_id: number,
  role_name: string
}

export type TRoleMenuItem = {
  menu_code: number | string,
  menu_name: string,
  menu_type: string
}

export type TSysMenuItem = {
  children: string[],
  code: number,
  data_type: string,
  menu_name: string,
  order: number,
  parent_code: number,
  parent_name: string
}

export type TOrgItem = {
  children: TOrgItem[],
  code: number,
  org_name: string,
  org_type: string,
  parent_id: number,
}